package com.wyth.lottery.base;

import com.wyth.lottery.bean.SSQDataBean;
import com.wyth.lottery.bean.hezhi.HezhiBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 庞华红 on 2017/9/22.
 * <p>
 * 用来保存购物车中数据
 */

public class SaveUtils {
    private static SaveUtils instance;

    public SaveUtils() {

    }

    public static SaveUtils getGoodsInfos() {
        if (instance == null) {

            instance = new SaveUtils();

        }
        return instance;
    }

    public List<SSQDataBean> mlist = new ArrayList<>();
    public List<HezhiBean> mThreelist = new ArrayList<>();
    public int mTvMoneyNumber = 0;
    public int mTvMoneyNumberBei = 1;
    public int mTvMoney = 0;
    public String mBonusStatus ;//开奖日期
    public String mDuplexTime ;//截止销售时间
    public String mSimplexTime;
    public String mName ;//当前其次





    public void ClearSSQData() {
        SaveUtils.getGoodsInfos().mlist.clear();
        SaveUtils.getGoodsInfos().mTvMoneyNumber = 0;
        SaveUtils.getGoodsInfos().mTvMoney = 0;
        SaveUtils.getGoodsInfos().mTvMoneyNumberBei=1;
    }
}
